import 'package:flutter/material.dart';
import 'package:x3_base_core/x3_base_core.dart';
import 'package:x3_form_core/models/base_advanced_filter_model.dart';

import '../mixin/advanced_filter_input_search_mixin.dart';

class AdvancedFilterInputSearchSingleChoice extends StatefulWidget {
  final BaseAdvancedFilterModel model;

  const AdvancedFilterInputSearchSingleChoice({Key key, @required this.model}) : super(key: key);

  @override
  _AdvancedFilterInputSearchSingleChoiceState createState() => _AdvancedFilterInputSearchSingleChoiceState();
}

class _AdvancedFilterInputSearchSingleChoiceState extends State<AdvancedFilterInputSearchSingleChoice> with AdvancedFilterInputSearchMixin {
  @override
  Widget build(BuildContext context) {
    return buildItemContainer();
  }

  @override
  BaseAdvancedFilterModel get model => widget.model;

  @override
  BaseHttpMethodEnum get method => BaseHttpMethodEnum.POST;

  @override
  double get fuzzySearchScreenHeight => MediaQuery.of(context).size.height * 0.7;
}
